#include <stdio.h>
#include <iostream>
#include "managerview_console_impl.h"
#include "serviceview_console_impl.h"
#include "getch.h"
using namespace std;
int main()
{	
	Managerview* nnn = new ManagerViewConsoleImpl;
	ServiceViewConsoleImpl* mmm = new ServiceViewConsoleImpl;

	while(1)
	{
		system("clear");
		cout << "1.超级管理员" << endl;
		cout << "2.业务管理员" << endl;
		cout << "q.退出"       << endl;
		cout << "请输入指令：" << endl;
		char cd = getch();
		switch(cd)
		{
			case '1':nnn->menu();break;
			case '2':mmm->menu();break;
			case 'q':return 0;
		}
	}
	
}
